import request from '@/utils/request'

// 查询派工单主列表
export function listExebill(query) {
  return request({
    url: '/system/exebill/list',
    method: 'get',
    params: query
  })
}

// 查询派工单主详细
export function getExebill(billid) {
  return request({
    url: '/system/exebill/' + billid,
    method: 'get'
  })
}

// 新增派工单主
export function addExebill(data) {
  return request({
    url: '/system/exebill',
    method: 'post',
    data: data
  })
}

// 修改派工单主
export function updateExebill(data) {
  return request({
    url: '/system/exebill',
    method: 'put',
    data: data
  })
}

// 删除派工单主
export function delExebill(billid) {
  return request({
    url: '/system/exebill/' + billid,
    method: 'delete'
  })
}

// 查询派工单编号
export function getCode() {
  return request({
    url: '/system/exebill/billcode',
    method: 'get'
  })
}
// 查询订单
export function getOrderList(data) {
  return request({
    url: '/system/orderbill/orderListNotExebilldetail',
    method: 'get',
    params: data
  })
}
